package com.thinkcoder.mvc.controller;

import com.thinkcoder.mvc.model.User;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Spring2.5之前版本的Controller
 *
 * @author 商俊帅
 * @date 2021/07/27 17:12
 **/
public class UserBeforeController extends AbstractController {

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse){
        return new ModelAndView("index","user",new User("小2",15));
    }
}
